home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: fflush and Visual C++
- Date: 16 Mar 1996 10:19 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <16MAR199610190465@erich.triumf.ca>
- References: <4idhv5$dnv@news.mhv.net>
- NNTP-Posting-Host: erich.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4idhv5$dnv@news.mhv.net>, Vinny.Bedus@bbs.mhv.net writes...
- >Can someone please tell me why when fflush function is used in Visual C
- >under a dos box it doesn't work? I have no problems with turbo c for win
- >but anything else and it doesn't flush the stdin buffer.
- > any ans??????????????
-
- fflush() is only defined to work on output streams. If some compiler happened
- to do something useful when you used it on an input stream, you were just
- (un?)lucky.
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-